<%@page contentType="text/html" pageEncoding="UTF-8"%>  
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<jsp:include page="header.jsp"></jsp:include>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<h2><fmt:message key="titleCategorie" /> ${cat}</h2>

<c:if test="${nbElement == 0}">
    <fmt:message key="nothingVente" />
</c:if>
<c:if test="${nbElement != 0}">
<div class="row">
    <c:forEach var="c" items="${listSyllabus}" >
        <div class="span-one-third" style="margin-top: 15px;">
            <div class="trucBizarre">
                <h4>${c.libelle}</h4>
                <span class="descriptionHasard">${c.description}</span>
                <ul class="listeHasard">
                    <li><fmt:message key="catVente" /> : ${c.categorie.denomination}</li>
                    <li><fmt:message key="autVente" /> : ${c.auteur.nom} ${c.auteur.prenom}</li>
                    <li><fmt:message key="prixVente" /> : ${c.prix}</li>
                </ul>
            </div>
            <p><a class="btn" href="VenteSyllatheque?id=${c.syllabusId}"><fmt:message key="detailVente" /> &raquo;</a></p>
        </div>
    </c:forEach>
</div>
</c:if>
   
<jsp:include page="footer.jsp"></jsp:include>